/*
 * Copyright (C) 2009-2018 Hangzhou 2Dfire Technology Co., Ltd. All rights reserved
 */
package com.ws.soa.consumer.dao;

import com.ws.soa.consumer.dao.mapper.UserMapper;
import com.ws.soa.consumer.domain.UserDO;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;

/**
 * UserDAO
 *
 * @author luobosi@2dfire.com
 * @since 2018-11-19
 */
@Repository
public class UserDAO {

    @Resource
    private UserMapper userMapper;

    /**
     * 保存
     *
     * @param userDO do
     * @return true/false
     */
    public boolean save(UserDO userDO) {
        return this.userMapper.insert(userDO) > 0;
    }
}
